PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.fonts.type1 Package / PDFType1Font Class / createWithPfmMetrics Method / createWithPfmMetrics(String,String,double,boolean) Method
Path to .pfm file.
Path to .pfb file.
Font size.
True if the font should be embedded in the PDF file.
In This Topic
    createWithPfmMetrics(String,String,double,boolean) Method
    In This Topic
    Creates a Type1 font from a combination of .pfm and .pfb files.
    Syntax
    public static PDFType1Font createWithPfmMetrics( 
       java.lang.String metricsFile,
       java.lang.String fontFile,
       double size,
       boolean embed
    )

    Parameters

    metricsFile
    Path to .pfm file.
    fontFile
    Path to .pfb file.
    size
    Font size.
    embed
    True if the font should be embedded in the PDF file.

    Return Value

    A Type1 font Object.
    See Also